package com.example.travelservlet.entertainmentPlan.repository;

import com.example.travelservlet.entity.EntertainmentPlan;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface EntertainmentPlanRepository extends JpaRepository<EntertainmentPlan,String>, JpaSpecificationExecutor {
    List<EntertainmentPlan> findEntertainmentPlansByPlanId(String planId, Sort sort);
    EntertainmentPlan findEntertainmentPlanByPlanIdAndSequence(String planId,Integer sequence);

    EntertainmentPlan findEntertainmentPlanByPlanIdAndSequence(int sequence,String planId);

}
